From: Corey Richardson Date: Mon, 23 Jun 2014 22:33:14 +0000 (-0700) Subject: Makefile: support install, makes packaging easier X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~974^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=e6de26491fe98747d29eb7bd085292b17fb32a90;p=cargo.git Makefile: support install, makes packaging easier --- diff --git a/Makefile b/Makefile index 3a2bfb371..bededdd1d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ RUSTC ?= rustc RUSTC_FLAGS ?= +DESTDIR ?= /usr/local # Link flags to pull in dependencies BINS = cargo \ @@ -73,6 +74,9 @@ distclean: clean cd libs/hammer.rs && make clean cd libs/toml-rs && make clean +install: + cp target/cargo target/cargo-* $(DESTDIR)/bin + # Setup phony tasks .PHONY: all clean distclean test test-unit test-integration libcargo